<?php

namespace addons\Patrol\merchant\controllers;
use Yii;
use common\traits\Curd;
use addons\Patrol\common\models\PatrolPlan;

class MyController extends BaseController
{
    use Curd;


    public $modelClass = PatrolPlan::class;


    public function actionIndex()
    {
        $model = PatrolPlan::find()->where(['member_id' => Yii::$app->user->id])->all();
//        Yii::$app->debris->p('test');
        return $this->render('index', [
            'model' => $model,
        ]);
    }


}
